const devProxyHost = process.env.REACT_APP_DEVELOPMENT_PROXY_PREFIX;
const prodBaseUrl = process.env.REACT_APP_PRODUCTION_URL;

let baseUrl = "";
if (process.env.NODE_ENV === "development") {
  baseUrl = devProxyHost + "/api2"; // url公共前缀(代理)
} else if (process.env.NODE_ENV === "production") {
  baseUrl = prodBaseUrl + "/api2";
}

module.exports = {
  baseUrl,
  prodBaseUrl,
};
